<template>
  <div class="box">
    <ul>
      <li v-for="(item, index) in data" :key="item.id">
        <slot :row="item" :$index="index"></slot>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'List',
  props: {
    data: Array
  },

  data () {
    return {
      m: 1
    }
  },

  data: {
    m: 1
  },

  mounted () {
    // this.$on('xxx', () => {})
    // this.$on('xxx', () => {})

    // div.addEventListener('click', () => {})
    // div.addEventListener('click', () => {})
    // div.addEventListener('click', () => {})
  }
}
</script>